package com.kaibes.module.file.local.db;

import java.math.BigInteger;

import com.kaibes.core.base.annotation.Description;

import lombok.Data;

/**
CREATE TABLE `file_mark` (
  `id` BIGINT NOT NULL AUTO_INCREMENT,
  `uuid` CHAR(32) NOT NULL,
  `name` VARCHAR(128) NOT NULL,
  `file_info_id` BIGINT NOT NULL,
  `suffix` VARCHAR(8) NOT NULL,
  `type` VARCHAR(32) NOT NULL,
  `user_id` INTEGER NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uuid` (`uuid`),
  INDEX `user_id` (`user_id`),
  FOREIGN KEY (`file_info_id`) REFERENCES `file_info` (`id`) ON DELETE CASCADE
) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
 */
@Data
@Description("文件标记")
public class FileMark {

    @Description("标记ID")
    private BigInteger id;
    @Description("标记UUID")
    private String uuid;
    @Description("文件名字")
    private String name;
    @Description("文件信息ID")
    private BigInteger fileInfoId;
    @Description("文件后缀")
    private String suffix;
    @Description("文件类型")
    private String type;
    @Description("用户ID")
    private Integer userId;
    
}
